home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / mddesk.c < prev    next >
Text File  |  1993-07-08  |  2KB  |  86 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <winb.h>
  5. #include <te.h>
  6. #include <fntb.h>
  7. #include <gui.h>
  8.  
  9. /*    使用する部品の宣言        */
  10.  
  11. /*    About画面の変数の定義                */
  12.  
  13. int    alertId = -1 ;
  14. int    aboutMesId[2] = -1 ;
  15. int    aboutBtnId = -1 ;
  16.  
  17. /*    背景画面の変数の定義    */
  18.  
  19. int    backId = -1 ;
  20. int    buttonId = -1 ;
  21. int    deskTopId = -1 ;
  22. int    deskTopBtnId[2] = -1 ;
  23. int    menuBarId = -1 ;
  24. int    mitemBarId[4] = -1 ;
  25. int    menu0Id = -1 ;
  26. int    mitem0Id = -1 ;
  27. int    menu1Id = -1 ;
  28. int    mitem1Id[7] = -1 ;
  29. int    menu2Id = -1 ;
  30. int    mitem2Id[6] = -1 ;
  31. int    menu3Id = -1 ;
  32. int    title_dispdialogId = -1 ;
  33. int    title_messageId[9] = -1 ;
  34. int    textcommentId[8] = -1 ;
  35.  
  36. /*    initDataMIDESK:mitem0Id:MJ_MITEML40の呼び出し関数    */
  37. /*    Aboutを表示するための関数                            */
  38. int    showAboutFunc(kobj, messId, argc, pev, trigger)
  39. int        kobj ;
  40. int        messId ;
  41. int        argc ;
  42. EVENT    *pev ;
  43. int        trigger ;
  44. {
  45.     /*    オブジェクトをダイアログに取り付ける    */
  46.     MMI_SendMessage( alertId , MM_ATTACH , 1 , backId ) ;
  47.  
  48.     /*    alertIdで示されるオブジェクトを表示する    */
  49.     MMI_SendMessage( alertId , MM_SHOW , 0 ) ; 
  50.  
  51.     return NOERR ;
  52. }
  53.  
  54. /*    initDataMIABOU:aboutBtnId:MJ_DBUTTONL40の呼び出し関数    */
  55. /*    Aboutを消去するための関数                                */
  56. int    eraseAboutFunc(kobj, messId, argc, pev, trigger)
  57. int        kobj ;
  58. int        messId ;
  59. int        argc ;
  60. EVENT    *pev ;
  61. int        trigger ;
  62. {
  63.     /*    alertIdで示されるオブジェクトを消す        */
  64.     MMI_SendMessage( alertId , MM_ERASE , 0 ) ;
  65.  
  66.     /*    オブジェクトをダイアログから取り外す    */
  67.     MMI_SendMessage( alertId , MM_DETACH , 0 ) ;
  68.  
  69.     return NOERR ;
  70. }
  71.  
  72. /*    initDataMIDESK:deskTopBtnId[1]:MJ_ICONL40の呼び出し関数    */
  73. /*    initDataMIDESK:mitem1Id[4]:MJ_MITEML40の呼び出し関数    */
  74. int    exitFunc(kobj, messId, argc, pev, trigger)
  75. int        kobj ;
  76. int        messId ;
  77. int        argc ;
  78. EVENT    *pev ;
  79. int        trigger ;
  80. {
  81.     MMI_SetHaltFlag( TRUE ) ;
  82.  
  83.     return NOERR ;
  84. }
  85.  
  86.